Backport of #106020: Multi-stage distributed queries#1999
Conversation
…ibuted_queries Multi-stage distributed queries
…1499-4a82-msan-non-deterministic-filter Fix MSan use-of-uninitialized-value in JOIN-conversion partial evaluation (issue ClickHouse#100469, STID 1499-4a82)
…_order_after_projection_use Use projection if it will help with sorting
…plan-unknown-table Fix logical error when table is dropped before distributed plan task deserialization
…plan-test-merge-race Stop merges in 03394_distributed_shuffle_join_early_close_sink to fix flakiness
…-shrink-idle-thread-pools Shrink idle thread pools of the distributed query infrastructure
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
CI triage3 failing checks — none is a code failure introduced by this PR. Breakdown: 1 policy (DCO), 1 pre-existing/branch-wide (Iceberg regression), 1 likely flaky (Swarms regression). Everything else (Fast test, Builds, Quick functional, Source upload, Config) is green.
1. DCO —
|
|
@ianton-ru could you pls comment on swarm fail? is it really unrelated? The pretty-formatted report is gone, but you can see the failure in the GH job itself: https://github.com/Altinity/ClickHouse/actions/runs/29262641137/job/86882806205?pr=1999 |
Thank you! |
@zvonand I can't because test artifacts were removed. |
|
@zvonand Yes, it's a known thing, unrelated to PR. |
|
Codex found nothing, and expecting a careful manual review of a backport that has 11000 LoC would be a little ambitious :) |
Yeah, backports were without large conflicts, I think can be merged. |
Backport of ClickHouse#106020 by @davenger
Backport of ClickHouse#103880 by @groeneai
Backport of ClickHouse#103723 by @Michicosun
Backport of ClickHouse#106944 by @davenger
Backport of ClickHouse#106951 by @davenger
Backport of ClickHouse#106978 by @davenger
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Multi-stage distributed queries (ClickHouse#106020 by @davenger)
Documentation entry for user-facing changes
Multi-stage distributed query execution: the planner splits the query plan into stages connected by scatter / broadcast / gather / shuffle exchanges and dispatches the plan fragments to worker nodes. The data between stages is streamed via TCP or passed via temporary files in shared object storage, the path supports distributed shuffle and broadcast hash joins, shuffle aggregation, and distributed sort. The feature is experimental and is disabled by default.
Depends on
(Use projection if it will help with sorting ClickHouse/ClickHouse#103723 by @Michicosun)
Bugfixes
(Shrink idle thread pools of the distributed query infrastructure ClickHouse/ClickHouse#106978 by @davenger)
CI/CD Options
Exclude tests:
Regression jobs to run: